#ifndef ADC_H
#define ADC_H

#include "esp_err.h"
#include "esp_types.h"

typedef struct
{
    bool     isOk;
    int      voltage;
    int      prevVoltage;
    uint32_t rawData;
} AdcData;

esp_err_t ADC_init(void);
esp_err_t ADC_register(int pin);
esp_err_t ADC_readAll(void);
AdcData   ADC_getData(int pin);

#endif
